import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {GeneralstaffComponent} from './generalStaff/generalstaff/generalstaff.component';
import {LoginComponent} from './login/login.component';
import {PunchInComponent} from './generalStaff/punch-in/punch-in.component';
import {OutApplicationComponent} from './generalStaff/out-application/out-application.component';
import {LeaveApplicationComponent} from './generalStaff/leave-application/leave-application.component';
import {OthersConditionComponent} from './generalStaff/others-condition/others-condition.component';
import {ValidLeaveApplicationComponent} from './generalStaff/valid-leave-application/valid-leave-application.component';
import {ManagerComponent} from './deptManager/manager/manager.component';
import {ManageComponent} from './administrator/manage/manage.component';
import {ExecutivestaffComponent} from './executiveStaff/executivestaff/executivestaff.component';
import {FinancestaffComponent} from './financeStaff/financestaff/financestaff.component';
import {ThisDepartmentComponent} from './deptManager/this-department/this-department.component';
import {OtherDepartmentComponent} from './deptManager/other-department/other-department.component';
import {ViceGeneralManagerComponent} from './viceGeneralManager/vice-general-manager/vice-general-manager.component';
import {GeneralmanagerComponent} from './generalManager/generalmanager/generalmanager.component';
import {ApprovalLeaveComponent} from './viceGeneralManager/approval-leave/approval-leave.component';
import {ApprovalOutingComponent} from './viceGeneralManager/approval-outing/approval-outing.component';
import {GeneralApprovalLeaveComponent} from './generalManager/general-approval-leave/general-approval-leave.component';
import {GeneralApprovalOutingComponent} from './generalManager/general-approval-outing/general-approval-outing.component';
import {GeneralAllEmployeeComponent} from './generalManager/general-all-employee/general-all-employee.component';
import {AllEmployeeComponent} from './viceGeneralManager/all-employee/all-employee.component';
import {AbsenceDayRecordComponent} from './executiveStaff/absence-day-record/absence-day-record.component';
import { SalaryStatisticComponent} from './financeStaff/salary-statistic/salary-statistic.component';

const routes: Routes = [
  {path: 'generalStaff', component: GeneralstaffComponent},
  {path: 'login', component: LoginComponent},
  {path: '', redirectTo: '/login', pathMatch: 'full'},
  {path: 'generalStaff/punchIn', component: PunchInComponent},
  {path: 'generalStaff/outApplication', component: OutApplicationComponent},
  {path: 'generalStaff/leaveApplication', component: LeaveApplicationComponent},
  {path: 'generalStaff/othersCondition', component: OthersConditionComponent},
  {path: 'generalStaff/validLeaveApplication', component: ValidLeaveApplicationComponent},
  {path: 'deptManager', component: ManagerComponent},
  {path: 'deptManager/thisDepartment', component: ThisDepartmentComponent},
  {path: 'deptManager/otherDepartment', component: OtherDepartmentComponent},
  {path: 'administrate', component: ManageComponent},
  {path: 'executiveStaff', component: ExecutivestaffComponent},
  {path: 'financeStaff', component: FinancestaffComponent},
  {path: 'viceGeneralManager', component: ViceGeneralManagerComponent},
  {path: 'viceGeneralManager/approvalLeave', component: ApprovalLeaveComponent},
  {path: 'viceGeneralManager/approvalOuting', component: ApprovalOutingComponent},
  {path: 'viceGeneralManager/allEmployee', component: AllEmployeeComponent},
  {path: 'generalManager', component: GeneralmanagerComponent},
  {path: 'generalManager/approvalLeave', component: GeneralApprovalLeaveComponent},
  {path: 'generalManager/approvalOuting', component: GeneralApprovalOutingComponent},
  {path: 'generalManager/allEmployee', component: GeneralAllEmployeeComponent},
  {path: 'executiveStaff/absenceDayRecord', component:AbsenceDayRecordComponent},
  {path: 'financeStaff/salaryStatistic', component:SalaryStatisticComponent},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
